package com.quest.space.poker.base.bean;

public class PokerConstants {
    public static final String bottom = "bottom";

    public static final String player1 = "player1";

    public static final String player2 = "player2";

    public static final String player3 = "player3";

    public static final String PASS = "pass";




    /**
     * 正则单牌
     */
    public static final String CANONICAL_NP = "[^2-9XJQKAWw\\-\\*]";

    /**
     * 正则单牌
     */
    public static final String CANONICAL_X = "[2-9XJQKAWw\\*]";

    /**
     * 正则对子
     */
    public static final String CANONICAL_XX = "([2-9XJQKAWw\\*])\\1{1}";

    /**
     * 正则三个
     */
    public static final String CANONICAL_XXX = "([2-9XJQKAWw\\*])\\1{2}";

    /**
     * 正则炸弹
     */
    public static final String CANONICAL_XXXX = "([2-9XJQKA\\*])\\1{3}";

    /**
     * 王炸
     */
    public static final String CANONICAL_KING = "wW";


    /**
     * 正则至少重复4次
     */
    public static final String CANONICAL_XXXX_Min = "([2-9XJQKAWw\\*])\\1{4,}";

    /**
     * 正则三带一
     */
    public static final String CANONICAL_XXXY = "([2-9XJQKAWw\\*])\\1{2}[2-9XJQKAWw\\*]";

    /**
     * 正则三带一
     */
    public static final String CANONICAL_YXXX = "[2-9XJQKAWw\\*]([2-9XJQKAWw\\*])\\1{2}";

    /**
     * 顺子
     */
    public static final String CANONICAL_ABCDE = "(?:3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)|9(?=X)|X(?=J)|J(?=Q)|Q(?=K)|K(?=A)){4}\\S";
    /**
     * 顺子
     */
    public static final String CANONICAL_EDCBA = "((?<=3)4|(?<=4)5|(?<=5)6|(?<=6)7|(?<=7)8|(?<=8)9|(?<=9)X|(?<=X)J|(?<=J)Q|(?<=Q)K|(?<=K)A){4,}\\S";

    /**
     * 连续 至少两次
     */
    public static final String CANONICAL_ABCDE_N = "(?:3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)|9(?=X)|X(?=J)|J(?=Q)|Q(?=K)|K(?=A)){N,}\\S";
    /**
     * 连续 至少两次
     */
    public static final String CANONICAL_EDCBA_N = "((?<=3)4|(?<=4)5|(?<=5)6|(?<=6)7|(?<=7)8|(?<=8)9|(?<=9)X|(?<=X)J|(?<=J)Q|(?<=Q)K|(?<=K)A){N,}";


    /**
     * 两连对
     */
    public static final String CANONICAL_AABBCC_N = "(?:33(?=44)|44(?=55)|55(?=66)|66(?=77)|77(?=88)|88(?=99)|99(?=XX)|XX(?=JJ)|JJ(?=QQ)|QQ(?=KK)|KK(?=AA)){N}\\S\\S";

    /**
     * 三连对
     */
    public static final String CANONICAL_AAABBBCCC_N = "(?:333(?=444)|444(?=555)|555(?=666)|666(?=777)|777(?=888)|888(?=999)|999(?=XXX)|XXX(?=JJJ)|JJJ(?=QQQ)|QQQ(?=KKK)|KKK(?=AAA)){N}\\S\\S\\S";
}
